package de.steveliedtke.agiledevtools;

import junit.framework.Assert;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;

public class StepDefs {

	private int toolAmount = 0;
	private int addedAmount = 0;
	
	@Given("^I have (\\d+) tool$")
	public void i_have_tool(int amount) throws Throwable {
	    toolAmount = amount;
	}

	@When("^I add (\\d+) tools$")
	public void i_add_tools(int amount) throws Throwable {
	    addedAmount = toolAmount + amount;
	}

	@Then("^I have (\\d+) tools$")
	public void i_have_tools(int amount) throws Throwable {
	    Assert.assertEquals(addedAmount, amount);
	}
}
